package com.imooc.security.core.validate.code;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * @Author：LovingLiu
 * @Description:
 * 图片验证码实体类
 * 注意: LocalDateTime 的使用
 * @Date：Created in 2019-12-22
 */
public class ImageCode extends ValidateCode {
    private BufferedImage image;
    public ImageCode(BufferedImage image, String code, LocalDateTime expireTime){
        super(code,expireTime);
        this.image = image;
    }
    public ImageCode(BufferedImage image, String code,  int expireIn){
        super(code,expireIn);
        this.image = image;
    }
    public BufferedImage getImage() {
        return image;
    }

    public void setImage(BufferedImage image) {
        this.image = image;
    }

}
